<template>
  <div class="content">
    <ProcessTypeContent
      :id="id"
      title="流程分类编辑"
    />
  </div>
</template>

<script setup lang="ts">
import { ref, watch } from 'vue'
import { useRoute } from 'vue-router'
import ProcessTypeContent from './ProcessTypeContent.vue'

const route = useRoute()
const id = ref()
watch(
  () => route,
  () => {
    if (route.path == '/OA/Office/EditProcessType') {
      id.value = route.query?.id
    }
  },
  { deep: true, immediate: true }
)
</script>
